package com.jcp.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jcp.entity.UserCountMessage;
import com.jcp.service.UserCountService;

@Controller
public class UserCountController {
 
	@Autowired
	private UserCountService userCountService;
	
	@GetMapping(value="selUserCount")
	public String selUserCount(Model model) {
		UserCountMessage userCountMessage=userCountService.selUserCount();
		model.addAttribute("userCountMessage", userCountMessage);
		return "forward:chepai-list1.jsp";
	}
	
}
